package JavaSE.StreamLearning.BufferedReaderPrintLine;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *  测试 BufferedReader
 *      在输入特定字符时跳出循环 判断中使用的是 && 且
 */
public class BufferedReaderPrintLine {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = br.readLine()) != null && (!line.equals("88"))) {
            System.out.print(line);
        }
        br.close();
    }
}
